import axios from 'axios'
import { Indicator } from 'mint-ui'
const $http = axios.create({
  baseURL: 'http://rap2api.taobao.org/app/mock/118668'
})

$http.interceptors.request.use(config => {
  Indicator.open('loading…')
  return config
})

$http.interceptors.response.use(resp => {
  Indicator.close()
  return resp
})

export default $http
